//
//  MM_AlertView.h
//  MallManage_IOS
//
//  Created by 张浩 on 2023/12/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger,MM_AlertViewBtnType) {
    
    MM_AlertViewBtnTypeCancel = 0, //取消
    MM_AlertViewBtnTypeEnsure = 1,//确定
};

typedef void (^MM_AlertViewBlock)(MM_AlertViewBtnType buttonIndexType);

@interface MM_AlertView : UIAlertView

/**
 *  alert
 *
 *  @param title             alert title
 *  @param message           alert message
 *  @param alertBlock        alert block
 *  @param cancelButtonTitle 取消
 *  @param ensureButtonTitle 确定
 */
+ (void)MM_AlertWithTitle:(NSString *)title message:(NSString *)message withJH_AlertBlock:(MM_AlertViewBlock)alertBlock cancelButtonTitle:(NSString *)cancelButtonTitle ensureButtonTitle:(NSString *)ensureButtonTitle;

@end

NS_ASSUME_NONNULL_END
